home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / Tools & Goodies / IntlTest / Sources / PartInfo.fr < prev    next >
Encoding:
Text File  |  1996-04-23  |  2.3 KB  |  125 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                PartInfo.fr
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWRESFIL_K
  11. #include "FWResFil.k"
  12. #endif
  13.  
  14. #ifndef FWPART_FR
  15. #include "FWPart.fr"
  16. #endif
  17.  
  18. #ifndef DEFINES_K
  19. #include "Defines.k"
  20. #endif
  21.  
  22. #ifndef BINDING_K
  23. #include "Binding.k"
  24. #endif
  25.  
  26. #ifndef SLGCONST_K
  27. #include "SLGConst.k" 
  28. #endif
  29.  
  30. #ifndef FWVIEWS_FR
  31. #include "FWViews.fr"
  32. #endif
  33.  
  34. //----------------------------------------------------------------------------------------
  35. //    PartInfo Resource
  36. //----------------------------------------------------------------------------------------
  37.  
  38. resource FW_RPartInfo(kPartInfoID)
  39. {
  40.     // ----- Icon ID
  41.     kPartIconID,
  42.     
  43.     // ----- Part Name
  44.     kODFIntlTestEditorUserString,
  45.     
  46.     // ----- PartKind
  47.     kODFIntlTestKind
  48. };
  49.  
  50. //----------------------------------------------------------------------------------------
  51. //    About Resource
  52. //----------------------------------------------------------------------------------------
  53.  
  54. // Defines copied from Script.h
  55. #define smJapanese 1
  56. #define langJapanese 11
  57.  
  58. // In order to change the constants in FW_RStringData, we have to subclass it like this:
  59. type RJapStringData : FW_RStringData (ScriptCode = smJapanese, LanguageCode = langJapanese)
  60. {
  61. };
  62.  
  63. resource FW_RAbout(kAboutBox)
  64. {
  65.     // ----- Icon ID
  66.     kPartIconID,
  67.     // ----- Part Name
  68.     FW_RStyledText
  69.     (
  70.         FW_FIX(18), 
  71.         FW_kBold, 
  72.         "times", 
  73.         "ODFIntlText"
  74.     ),
  75.     // ----- Version Number
  76.     FW_RStyledText
  77.     (
  78.         FW_FIX(9),
  79.         FW_kPlain,
  80.         "geneva",
  81.         "Version ODF1"
  82.     ),
  83.     // ----- Credits
  84.     FW_RStyledText
  85.     (
  86.         FW_FIX(14),
  87.         FW_kPlain,
  88.         "osaka",
  89.         RJapStringData
  90.         (
  91.             "ÇhÇéÇîÇåÇsÇÖÇòÇîÇÕééå±Ç≈Ç∑ÅB\r\r\r"
  92.             "ÇvÇíÇâÇîÇîÇÖÇéÅ@ÇÇÇô\r"
  93.             "ÇîÇàÇÖÅ@ÇnÇcÇeÅ@ÇîÇÖÇÅÇçÅD\r"
  94.         )
  95.     )
  96. };
  97.  
  98. //----------------------------------------------------------------------------
  99. // Strings for testing FW_RStringData resource
  100.  
  101. type RJapString (TESTSTRINGRES)
  102. {
  103.     RJapStringData;
  104. };
  105.  
  106. resource RJapString (kDefaultJapStringID)
  107. {
  108.     "ééå±Ç≈Ç∑ÅB"
  109. };
  110.  
  111. type REngString (TESTSTRINGRES)
  112. {
  113.     FW_RStringData;
  114. };
  115.  
  116. resource REngString (kDefaultTextStringID)
  117. {
  118.     "This is a test."
  119. };
  120.  
  121. resource REngString (kDefaultEngStringID)
  122. {
  123.     "Testing…"
  124. };
  125.